package com.evzgaga.evzrecon.xmlrpc.client;

import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcTransport;
import org.apache.xmlrpc.client.XmlRpcTransportFactoryImpl;

/**
 *
 * @author Bastien
 */
public class XmlRpcRawSocketTransportFactory extends XmlRpcTransportFactoryImpl {

    public XmlRpcRawSocketTransportFactory(XmlRpcClient client) {
        super(client);
    }

    public XmlRpcTransport getTransport() {
        try {
            return new XmlRpcRawSocketTransport(getClient());
        } catch (IOException ex) {
            Logger.getLogger(XmlRpcRawSocketTransportFactory.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        return null;
    }
}
